package com.itheima.myiotest5;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Test2 {
    public static void main(String[] args) throws IOException {
        //利用properties集合读取本地文件
        //1.创建Properties对象
        Properties prop = new Properties();
        //2.加载本地文件到集合
        FileInputStream fis = new FileInputStream("myiotest\\a.properties");
        prop.load(fis);
        fis.close();
        System.out.println(prop);


    }
}
